package com.neusoft.neuiotms.dcam.common.util;

import com.neusoft.bizcore.web.utils.id.DefaultIdGenerator;
import com.neusoft.bizcore.web.utils.id.IdGenerator;

public class CodeGenerator {
    public static IdGenerator MaintenanceChangeCodeGenerator = new DefaultIdGenerator(20l, "MC_");
    public static IdGenerator SysTaskCodeGenerator = new DefaultIdGenerator(20l, "TASK_");

    public static String maintenanceChangeGenerator() {
        return "MC_" + CodeGenerator.MaintenanceChangeCodeGenerator.generate();
    }

    public static String sysTaskCodeGenerator() {
        return CodeGenerator.SysTaskCodeGenerator.generateCode();
    }
}
